This is a simple HTML document with a styled section and body. The section has a light blue background, and the body has a soft gray background with rounded corners.
Feel free to modify the styles and content as you wish!
<style>
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
margin: 0px;
padding: 0px;
}
.section-1 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0%;
padding-top: 0%;
margin: 30px;
border-radius: 2px;
}
.h1 {
font-size: 100px;
}
.p {
color: #333;
font-size: 35px;
}
.section-left {
width: 65%;
margin: 0%;
font-size: 40px;
margin-bottom: 50px;
margin-left: 200px;
}
.section-right {
width: 35%;
margin: 0%;
margin-top: 20px;
}
img {
margin-left: 20%;
max-width: 100%;
height: auto;
border-radius: 10px;
}
hr {
clear: both;
}
button {
background-color: #4c4caf;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 8px 4px;
cursor: pointer;
border-radius: 8px;
}
a {
text-decoration: none;
}
/* ✅ Mobile responsive styles */
@media (min-width: 0px) and (max-width: 500px) {
*{
margin: 2%;
padding: 0%;
}
body {
background-color: #4b0082;
color: #facc15;
/* color: #e9d5ff; */
/* color: #7dd3fc; */
}
.section-1 {
display: flex;
padding: 0%;
padding-top: 0%;
margin: 0px;
/* background-color: #2d92a0; */
border-radius: 0px;
}
.h1 {
font-size: 30px;
}
.section-left {
width: 60%;
margin: 0;
font-size: 40px;
}
.section-right {
width: 35%;
margin: 0;
}
img {
margin-left: 0%;
max-width: 90%;
height: auto;
border-radius: 10px;
}
.p {
margin-top: 15px;
font-size: 9px;
/* color:#e9d5ff; */
color:#92400e;
/* color:#bc7b52; */
}
button {
background-color: #7dd3fc;
border: none;
color: #000000;
padding: 3.5px 2.5px;
text-align: center;
display: inline-block;
font-size: 9px;
margin: 3px 5px;
border-radius: 5px;
}
}
/* ✅ pad responsive styles */
@media (min-width: 500px) and (max-width: 1500px) {
body {
background-color: #fef9c3;
color: #1e293b;
}
.section-1 {
padding: 10%;
padding-top: 2.5%;
margin: 10px;
}
.h1 {
font-size: 45px;
}
.section-left {
width: 60%;
margin: 0;
font-size: 0 20px;
}
.section-right {
width: 35%;
margin: 0;
}
img {
margin-left: 0%;
max-width: 100%;
}
.p {
font-size: 12px;
color: #92400e;
}
button {
background-color: #0f766e;
border: none;
padding: 8px 12px;
font-size: 8px;
margin: 0px 30px;
border-radius: 10px;
}
}
<style>
<body>
<hr />
<section class="section-1" style="background-color: #b2447e4e;">
<div class="section-left">
<h1 class="h1">Welcome to My Web Page</h1>
<p class="p">This is a simple HTML document with a styled section and body. The section has a light blue
background, and the body has a soft gray background with rounded corners.</p>
<p class="p">Feel free to modify the styles and content as you wish!</p>
<a href="image.png" download><button>Download CV</button></a>
<a href="/"><button>GitHub Link</button></a>
</div>
<div class="section-right">
<img src="image.png" alt="flower" />
</div>
</section>
<hr />
</body>